package com.xm.biz.impl;

import com.xm.biz.OrderBiz;
import com.xm.dao.OrderDao;
import com.xm.dao.impl.OrderDaoImpl;
import com.xm.po.Goods;
import com.xm.po.Order;
import com.xm.util.DButil;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.List;

/**
 * @author Administrator
 * @date 2020-08-18-15:03
 * @description 订单数据业务逻辑实现类
 */
public class OrderBizImpl implements OrderBiz {
    //初始化数据层
    OrderDao orderDao = new OrderDaoImpl();
    @Override
    public List<Order> gatAll() {
        return orderDao.list();
    }

    @Override
    public boolean add(Order order) {
        return orderDao.add(order);
    }

    @Override
    public Order getOrderByNo(String orderNo) {
        return orderDao.getOrderByNo(orderNo);
    }

}
